package com.aaa.member.service;

import com.aaa.common.bo.Car;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @fileName:CarService
 * @description:
 * @author:zhz
 * @createTime:2020/11/21 14:56
 * @version:1.0.0
 */
@FeignClient("carService")
public interface CarService {

    /**
     * 修改数据
     *
     * @param car 实例对象
     * @return 实例对象
     */
    @PutMapping("/car/update")
    Car update(@RequestBody Car car);

    /**
     * 根据ID获取车辆信息
     * @param id
     * @return
     */
    @GetMapping("/car/selectOne")
    public Car selectOne(@RequestParam("id") Integer id);
}
